﻿<div id="menu-top">
    <div id="branch-directory">
        <div style="float: left;margin-top:5px;">
            <span class="ui-icon ui-icon-circle-check" style="float: left; margin-right: 5px">
            </span><span>营业部： </span>
        </div>
        <div style="float: left;margin-top:5px;">
            <span id="branch-select-prompt" class="unselected">当前未选择营业部 </span>
        </div>
        <div id="branch-directory-detail" class="hidden">
            <div class="selected-branch">
                <span id="parent-branch-name"></span>
            </div>
            <span class="ui-icon ui-icon-arrowthick-1-e" style="margin: 3px 1px 0 1px; float: left;">
            </span>
            <div class="selected-branch">
                <span id="child-branch-name"></span>
            </div>
        </div>
    </div>
    <div style="float: right">
        <span id="menu-switch-ico" class="ui-icon ui-icon-circle-triangle-e" style="float: left">
        </span>
        <a id="menu-switch" href="javascript:void(0)" onclick="switchMenu()"></a>
    </div>
    <div class="clear">
        @Html.Hidden("BranchCategory")
    </div>
</div>
<div style="padding-top: 10px">
    <ul id="function-table">
        @{var functions = new FunctionModuleBLL().GetAll();}
        @foreach (var item in functions)
        {
            switch (item.Mdl_ID)
            {
                case (int)FunctionType.BI:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_001.png"), Url.Action("Index", "BI"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.HR:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_002.png"), Url.Action("Index", "HR"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.DependencyBranch:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_003.png"), Url.Action("Index", "DependencyBranch"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.DependencyEconomy:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_004.png"), Url.Action("Index", "DependencyEconomy"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.LisenceManagement:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_005.png"), Url.Action("Index", "Lisence"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.ContractManagement:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_006.png"), Url.Action("Index", "Contract"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.Audit:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_007.png"), Url.Action("Index", "Audit"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.InternalManagement:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_008.png"), Url.Action("Index", "Internal"), item.Mdl_ID)</li>
           break;
                case (int)FunctionType.RewardsPunishment:
            <li>@Html.MenuButton(item.Mdl_Name, Url.Content("~/Content/images/ico_fn_009.png"), Url.Action("Index", "RewardsPunishment"), item.Mdl_ID)</li>
           break;
            }
        }
    </ul>
</div>
<div id="branch_category_search" title="营业部查询" style="display: none">
    <div>
        @Html.TextBox("branch_search")
        <button id="btn-branch-search" onclick="searchCategories()">
            搜索</button>
    </div>
    <div class="clear" id="branch_search_result" style="margin: 10px 0;">
    </div>
</div>
